﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="MemberDetail.aspx.cs" Inherits="WEALTH.MemberDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <link rel="stylesheet" href="css/indexPage.css" type="text/css" media="screen" />
        <script type="text/javascript">
    var email_reg = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
        //注册验证
    CheckRegion = function () {
        var PassWord = $("#MainContent_txt_PassWord").val();
        var ComPassWord = $("#MainContent_txt_ComPassWord").val();
        var Phone = $("#MainContent_txt_Phone").val();
        var Email = $("#MainContent_txt_Email").val();
        var RealName = $("#MainContent_txt_RealName").val();
        var Idcard = $("#MainContent_txt_IDCard").val();
        var msg = "";

        if (PassWord.length > 0) {
            if (PassWord.length < 6 || PassWord.length > 20) {
                msg += "登录密码必须为6-20位字符。<br/>";
            }
            if (ComPassWord == "") {
                msg += "确认密码不能为空。<br/>";
            }
            if (PassWord != ComPassWord) {
                msg += "登录密码与确认密码不一致。<br/>";
            }
        }
        if (Phone == "") {
            msg += "手机号码不能为空。<br/>";
        }
        else if (Phone.length != 11) {
            msg += "手机号码格式不正确。<br/>";
        }
        if (Email == "") {
            msg += "邮箱不能为空。<br/>";
        }
        else if (!email_reg.test(Email)) {
            msg += "邮箱格式不正确。<br/>";
        }
        if (RealName == "") {
            msg += "真实姓名不能为空。<br/>";
        }

        if (Idcard == "") {
            msg += "证件号不能为空。<br/>";
        }       

        if (msg != "") {
            jBox.alert(msg, '信息提示');
            return false;
        }
    }
    </script>
    <div style="background-image: url('images/subIndexTop.jpg'); background-repeat: no-repeat;
        height: 63px; width: 978px">
    </div>
    <div class="memLogin" style="width:22%;">
        <div class="one-third " style="width:100%" >
            <h3>
                <strong>会员俱乐部</strong></h3>
            <ul class="unordered-list">
                <li><a href="MemberDetail.aspx">我的资料</a></li>
                <li><a href="BuyListCus.aspx">我的积分</a></li>
                <li><a href="MyDuiZhangdan.aspx">我的对账单</a></li>                
                <li><a href="Logout.aspx">退出登录</a></li>
            </ul>
        </div>
    </div>
    <div class="memReg01" style="width:70%;">

    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                <tbody>
                    <tr>
                        <th>
                            <em>*</em><span>会员账号</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_UserName" name="txt_UserName"
                                MaxLength="70" ReadOnly = "true"></asp:TextBox>
                            <br>
                            <span>4-20位字符(大小写字母、数字、下划线、中文)</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <span>登录密码</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_PassWord" name="txt_PassWord"
                                TextMode="Password" MaxLength="20"></asp:TextBox>
                            <br />
                            <span>如不输入保持原密码不变。6-20位字符(大小写字母、数字、符号) </span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                             <span>确认密码</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_ComPassWord" name="txt_ComPassWord"
                                TextMode="Password" MaxLength="20"></asp:TextBox>
                            <br />
                            <span>请再次输入您的密码</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span>手机号码</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_Phone" name="txt_Phone" MaxLength="30"></asp:TextBox>
                            <br />
                            <span>请填写正确有效的手机号码，体验优质服务</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span>电子邮箱</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_Email" name="txt_Email" MaxLength="30"></asp:TextBox>
                            <br />
                            <span>请填写正确有效的邮箱地址</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span>真实姓名</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_RealName" name="txt_RealName"
                                MaxLength="70"></asp:TextBox>
                            <br />
                            <span style="font-size: 8px;">&#12288;</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span style="letter-spacing: 6px;">证件号</span>：
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlidcardType" runat="server" Width="62px">
                                <asp:ListItem Value="0">身份证</asp:ListItem>
                                <asp:ListItem Value="1">护照</asp:ListItem>
                            </asp:DropDownList>
                            <asp:TextBox CssClass="text" Style="width: 160px;" runat="server" ID="txt_IDCard"
                                name="txt_IDCard" MaxLength="18"></asp:TextBox>
                            <br />
                            <span style="font-size: 8px;">&#12288;</span>
                        </td>
                    </tr>                   
                    <tr>
                        <th>
                            &nbsp;
                        </th>
                        <td>
                            <asp:Button ID="But_Region" CssClass="loginBtn" runat="server" Text="保存" OnClientClick="return CheckRegion();"
                                OnClick="But_Region_Click" />
                        </td>
                    </tr>
                </tbody>
            </table>
    </div>
</asp:Content>
